package com.datasure.demo.webSocket.config;

import com.datasure.demo.webSocket.services.BasicService;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xiaolong5.zhang
 * @date 2022/05/23 21:05
 **/
public class ServiceManage {

    private static final Map<String, BasicService> bussineTypeService = new HashMap<>();

    public static void registryService(String bussineType, BasicService basicService){
        bussineTypeService.put(bussineType, basicService);
    }

    public static BasicService getService(String bussineType){
        return bussineTypeService.get(bussineType);
    }
}
